home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MMMMPPPPIIII____SSSSEEEENNNNDDDDRRRREEEECCCCVVVV((((3333)))) MMMMPPPPIIII____SSSSEEEENNNNDDDDRRRREEEECCCCVVVV((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- MMMMPPPPIIII____SSSSeeeennnnddddrrrreeeeccccvvvv - Sends and receives a message
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- C:
-
- #include <mpi.h>
-
- int MPI_Sendrecv( _s_e_n_d_b_u_f, _s_e_n_d_c_o_u_n_t, _s_e_n_d_t_y_p_e, _d_e_s_t,
- _s_e_n_d_t_a_g, _r_e_c_v_b_u_f, _r_e_c_v_c_o_u_n_t, _r_e_c_v_t_y_p_e, _s_o_u_r_c_e, _r_e_c_v_t_a_g,
- _c_o_m_m, _s_t_a_t_u_s )
- void *_s_e_n_d_b_u_f;
- int _s_e_n_d_c_o_u_n_t;
- MPI_Datatype _s_e_n_d_t_y_p_e;
- int _d_e_s_t, _s_e_n_d_t_a_g;
- void *_r_e_c_v_b_u_f;
- int _r_e_c_v_c_o_u_n_t;
- MPI_Datatype _r_e_c_v_t_y_p_e;
- int _s_o_u_r_c_e, _r_e_c_v_t_a_g;
- MPI_Comm _c_o_m_m;
- MPI_Status *_s_t_a_t_u_s;
-
-
- C++:
-
- #include <mpi.h>
-
- void Comm::Sendrecv(
- const void *_s_e_n_d_b_u_f,
- int _s_e_n_d_c_o_u_n_t,
- const Datatype& _s_e_n_d_t_y_p_e,
- int _d_e_s_t,
- int _s_e_n_d_t_a_g,
- void *_r_e_c_v_b_u_f,
- int _r_e_c_v_c_o_u_n_t,
- const Datatype& _r_e_c_v_t_y_p_e,
- int _s_o_u_r_c_e,
- int _r_e_c_v_t_a_g) const
-
-
- Fortran:
-
- INCLUDE "mpif.h" (or USE MPI)
-
- <type> SENDBUF(*), RECVBUF(*)
- INTEGER _s_e_n_d_c_o_u_n_t, _s_e_n_d_t_y_p_e, _d_e_s_t, _s_e_n_d_t_a_g,
- _r_e_c_v_c_o_u_n_t, _r_e_c_v_t_y_p_e, _s_o_u_r_c_e, _r_e_c_v_t_a_g, _c_o_m_m,
- _s_t_a_t_u_s(MPI_STATUS_SIZE), _i_e_r_r_o_r
-
- CALL MPI_SENDRECV(*_s_e_n_d_b_u_f, _s_e_n_d_c_o_u_n_t, _s_e_n_d_t_y_p_e, _d_e_s_t,
- _s_e_n_d_t_a_g, *_r_e_c_v_b_u_f, _r_e_c_v_c_o_u_n_t, _r_e_c_v_t_y_p_e, _s_o_u_r_c_e,
- _r_e_c_v_t_a_g, _c_o_m_m, _s_t_a_t_u_s(MPI_STATUS_SIZE), _i_e_r_r_o_r)
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- MMMMPPPPIIII____SSSSEEEENNNNDDDDRRRREEEECCCCVVVV((((3333)))) MMMMPPPPIIII____SSSSEEEENNNNDDDDRRRREEEECCCCVVVV((((3333))))
-
-
-
- SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
- This release implements the MPI 1.2 standard, as documented by the MPI
- Forum in the spring 1997 release of _M_P_I: _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
- _S_t_a_n_d_a_r_d.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The MMMMPPPPIIII____SSSSeeeennnnddddrrrreeeeccccvvvv routine sends and receives a message. This routine
- accepts the following parameters:
-
- _s_e_n_d_b_u_f Specifies the initial address of the send buffer (choice)
-
- _s_e_n_d_c_o_u_n_t Specifies the number of elements in the send buffer
- (integer)
-
- _s_e_n_d_t_y_p_e Specifies the type of elements in the send buffer (handle)
-
- _d_e_s_t Specifies the rank of the destination (integer)
-
- _s_e_n_d_t_a_g Specifies the send tag (integer)
-
- _r_e_c_v_c_o_u_n_t Specifies the number of elements in the receive buffer
- (integer)
-
- _r_e_c_v_t_y_p_e Specifies the type of elements in the receive buffer
- (handle)
-
- _s_o_u_r_c_e Specifies the rank of the source (integer)
-
- _r_e_c_v_t_a_g Specifies the receive tag (integer)
-
- _c_o_m_m Specifies the communicator (handle)
-
- _r_e_c_v_b_u_f Returns the initial address of the receive buffer (choice)
-
- _s_t_a_t_u_s Returns the status object (as it relates to the receive
- operation) (status)
-
- _i_e_r_r_o_r Specifies the return code value for successful completion,
- which is in MPI_SUCCESS. MPI_SUCCESS is defined in the
- mmmmppppiiiiffff....hhhh file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-